package com.example.springboot01.model;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Auther: zrd
 * @Date: 2022/3/16/03/16/16:31
 * @Description: com.example.springboot01.model
 */
@Component
@Data
public class Student_copy {
    private Integer studentId;
    private String studentName;
    private String studentGrade;
    private String studentMajor;
    private StudentSexEnum studentSex;
    private String CardId;
    private int classId;
    private Class classes;
    private Card card;
    private List<Course> courseList;


    public Student_copy() {
    }

    public Student_copy(int studentId, String studentName, String studentGrade, String studentMajor, StudentSexEnum studentSex, String cardId, int classId, Class classes, Card card, List<Course> courseList) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.studentGrade = studentGrade;
        this.studentMajor = studentMajor;
        this.studentSex = studentSex;
        CardId = cardId;
        this.classId = classId;
        this.classes = classes;
        this.card = card;
        this.courseList = courseList;
    }

    public Student_copy(int studentId, String studentName, String studentGrade, String studentMajor, StudentSexEnum studentSex, String cardId, Card card) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.studentGrade = studentGrade;
        this.studentMajor = studentMajor;
        this.studentSex = studentSex;
        CardId = cardId;
        this.card = card;
    }

    public Student_copy(int studentId, String studentName, String studentGrade, String studentMajor, StudentSexEnum studentSex, Card card) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.studentGrade = studentGrade;
        this.studentMajor = studentMajor;
        this.studentSex = studentSex;
        this.card = card;
    }

    public Student_copy(String studentName, String studentGrade, String studentMajor, StudentSexEnum studentSex) {
        this.studentName = studentName;
        this.studentGrade = studentGrade;
        this.studentMajor = studentMajor;
        this.studentSex = studentSex;
    }

    public Student_copy(int studentId, String studentName, String studentGrade, String studentMajor, StudentSexEnum studentSex) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.studentGrade = studentGrade;
        this.studentMajor = studentMajor;
        this.studentSex = studentSex;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentId=" + studentId +
                ", studentName='" + studentName + '\'' +
                ", studentGrade='" + studentGrade + '\'' +
                ", studentMajor='" + studentMajor + '\'' +
                ", studentSex=" + studentSex +
                ", CardId='" + CardId + '\'' +
                ", classId=" + classId +
                ", classes=" + classes +
                ", card=" + card +
                ", courseList=" + courseList +
                '}';
    }
}
